<template>
  <div class="check-btn" :class="{ check: isChecked }">
    <i class="iconfont icon-xuanzhong"></i>
  </div>
</template>

<script>
export default {
  name: "CheckBtn",
  props: {
    isChecked: {
      type: Boolean,
      default: false, // 是否选中/默认不选中
    },
  },
};
</script>

<style scoped  lang="less" >
.check-btn {
  background-color: #fff;
  border: 2px solid #bbb;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  text-align: center;
  overflow: hidden;
  .iconfont {
    color: #fff;
  }
}
.check-btn.check {
  background-color: palevioletred;
  border-color: palevioletred;
}
</style>